home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / ObjName.au3 < prev    next >
Text File  |  2007-09-08  |  733b  |  15 lines

  1. $oInternet = ObjCreate("InternetExplorer.Application")
  2. $oInternet.Navigate( "http://www.google.com" ) ; Opening a web page that contains a form
  3. sleep(4000)                    ; Give the page time to load
  4.  
  5. $oDoc = $oInternet.document    ; Example object to test
  6. $oForm = $oDoc.forms(0)        ; Example object to test
  7.  
  8. msgbox(0,"","Interface name of $oInternet is: " & ObjName($oInternet) & @CRLF & _
  9.             "Object name of $oInternet is:    " & ObjName($oInternet,2) & @CRLF & _
  10.             "Interface name of $oDoc is:      " & ObjName($oDoc) & @CRLF & _
  11.             "Object name of $oDoc is:         " & ObjName($oDoc,2) & @CRLF & _
  12.             "Interface name of $oForm is:     " & ObjName($oForm) & @CRLF & _
  13.             "Object name of $oForm is:        " & ObjName($oForm,2))
  14.  
  15.